package com.qzsoft.system.modules.permission.group.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.qzsoft.system.common.AbstractBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * 角色用户关联关系(SysRoleGroup)表实体类
 *
 * @author gbx
 * @since 2020-11-04 10:31:08
 */
@ApiModel(value = "角色用户关联关系")
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ToString
@TableName("sys_role_group")
public class SysRoleGroupEntity extends AbstractBaseEntity {
    private static final long serialVersionUID = -76828499144895194L;

    /**
     * id主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id主键")
    private Long id;

    /**
     * 角色ID
     */
    @ApiModelProperty(value = "角色ID")
    private Long roleId;

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID")
    private String groupId;

    /**
     * 删除标识(0 未删除  1 已删除)
     */
    @ApiModelProperty(value = "删除标识(0 未删除  1 已删除)")
    @TableLogic
    private Integer hasDelete;

}